package com.yoda.mall.api;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yoda.mall.model.entity.sms.Coupon;

public interface CouponApi {
    void createCoupon(Coupon coupon);

    void deleteCouponById(Long id);

    Page<Coupon> getCouponListPage(String name, Integer pageNum, Integer pageSize, Integer type);

    void updateCoupon(Coupon coupon);

    Coupon getCouponById(Long id);
}
